package springboot_kafka_storm.entity;

import java.io.Serializable;

import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONType;

@Component
@JSONType(orders={"id","name","age"}) //对属性就行排序
public class InfoGet implements Serializable{
	 /**
	  * 
	  */
	 private static final long serialVersionUID = -8699220411939827164L;
	 private int id;
	 private String name;
	 private int age;
	 public int getId() {
	  return id;
	 }
	 public void setId(int id) {
	  this.id = id;
	 }
	 public String getName() {
	  return name;
	 }
	 public void setName(String name) {
	  this.name = name;
	 }
	 public int getAge() {
	  return age;
	 }
	 public void setAge(int age) {
	  this.age = age;
	 }
	 
	 @Override
	 public String toString() {
	  return JSON.toJSONString(this);
	 }
}